package com.qzimp.fujiancuo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  实体类。
 *
 * @author 吴宗波
 * @since 2024-11-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("")
@Table(value = "tb_region")
public class Region implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 表id
     */
    @Id(keyType = KeyType.Auto)
    @ApiModelProperty("表id")
    private Integer id;

    /**
     * 地区名称
     */
    @ApiModelProperty("地区名称")
    private String name;

    /**
     * 父id
     */
    @ApiModelProperty("父id")
    private Integer parentId;

    /**
     * 地区等级
     */
    @ApiModelProperty("地区等级")
    private Boolean level;

}
